<?php

namespace common\models\buss;

use Yii;

/**
 * This is the model class for table "{{%buss_accounts_consume_data}}".
 *
 * @property int $id
 * @property int $consume_id 账号消费ID（关联buss_accounts_consume表ID）
 * @property int|null $private_sms_num 有效私信
 * @property int|null $effective_clue_num 有效线索
 * @property int|null $give_mobile_num 留电数
 * @property int|null $recommend_num 推荐数
 * @property int $operation_id 操作人ID
 * @property string $operation_name 操作人
 * @property int $created_at 添加时间
 * @property int $updated_at 更新时间
 */
class AccountsConsumeData extends \common\models\base\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%buss_accounts_consume_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['consume_id'], 'required'],
            [['consume_id', 'private_sms_num', 'effective_clue_num', 'give_mobile_num', 'recommend_num', 'operation_id', 'created_at', 'updated_at'], 'integer'],
            [['operation_name'], 'string', 'max' => 32],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'consume_id' => '账号消费ID（关联buss_accounts_consume表ID）',
            'private_sms_num' => '有效私信',
            'effective_clue_num' => '有效线索',
            'give_mobile_num' => '留电数',
            'recommend_num' => '推荐数',
            'operation_id' => '操作人ID',
            'operation_name' => '操作人',
            'created_at' => '添加时间',
            'updated_at' => '更新时间',
        ];
    }
}
